package com.example.servicehi.client;

import com.example.servicehi.dao.News;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("userclient")
public interface NewsMapper {
    @RequestMapping("{user_id}")
    public News getNewsByUserId(@PathVariable String user_id);
}
